﻿using Microsoft.Xna.Framework;

namespace Firefly.ExtensionMethods
{
    public static class MatrixExtensions
    {
        public static Vector3 ToVector3(this Matrix obj)
        {
            Quaternion q = Quaternion.CreateFromRotationMatrix(obj);
            return new Vector3(q.X, q.Y, q.Z);
        }
    }
}